package br.com.busgps.util;

public class Constants
{

    public static final String DATA_RIO_BASE_URL = "http://data.rio.rj.gov.br";
    
    /** URL base */
    public static final String BASE_URL = "http://dadosabertos.rio.rj.gov.br/apiTransporte/apresentacao";

    /** URL PRA BUSCAR O PERCURSO DE UM DETERMINADO ONIBUS */
    public static final String REQUEST_ROUTE_URL = BASE_URL + "/csv/gtfs/onibus/percursos/gtfs_linha{0}-shapes.csv";

    /** URL PRA BUSCAR A LOCALIZACAO DOS ONIBUS */
    public static final String REQUEST_LOCATION_URL = BASE_URL + "/rest/index.cfm/obterTodasPosicoes";

    /** URL PRA BUSCAR OS PONTOS DE PARADAS DE UM DETERMINADO ONIBUS */
    public static final String REQUEST_PARADAS_URL = BASE_URL + "/csv/gtfs/onibus/paradas/gtfs_linha{0}-paradas.csv";

    /** URL PRA BUSCAR TODAS AS LINHAS DE ONIBUS QUE TEM PERCURSO*/
    public static final String REQUEST_LINES_URL = "http://data.rio.rj.gov.br/dataset/pontos-dos-percursos-de-onibus";

    /*** TAG PARA BUSCAR TODAS AS LINHAS QUE POSSUEM PERCURSO CADASTRADO */
    public static final String HTML_TAG_PATTERN = ".module-content #dataset-resources .resource-list .resource-item p";

    /*** TAG PARA BUSCAR TODAS AS LINHAS QUE POSSUEM PERCURSO CADASTRADO */
    public static final String HTML_RESOURCE_LINK_TAG_PATTERN = ".module-content #dataset-resources .resource-list .resource-item .heading";
    
    /*** TAG PARA BUSCAR A DATA DA ULTIMA ATUALIZACAO DO PERCURSO */
    public static final String HTML_UPDATE_DATE_TAG_PATTERN = "#main .wrapper .primary .module-content td";
    
    /** Mapping */
    public static final String ALL_BUSES = "allPositions";

    public static final String BY_NUMBER = "number/";

    public static final String BY_ORDER = "order/";

    public static final String BY_BUS_STOP = "ponto/";

    /** Base Path */
    public static final String BUS_PATH = "/bus";

    public static final String LOCATION_PATH = "/location";

    public static final String PERCURSO_PATH = "/percurso";

    public static final String BUS_STOP_PATH = "/busStop";

    public static final String SLASH = "/";

    /** Database */
    public static final String DATABASE_PROPERTIES = "/database.properties";

    public static final String DATABASE_JDBC_DRIVER_CLASS_NAME = "jdbc.driverClassName";

    public static final String DATABASE_JDBC_URL = "jdbc.url";

    public static final String DATABASE_JDBC_USERNAME = "jdbc.username";

    public static final String DATABASE_JDBC_PASSWORD = "jdbc.password";

    public static final String BUS_STOP_ID = "busStopId";

    public static final String ORDER = "ordem";

    public static final String NUMBER = "number";
    
    
    public static final String IDA = "IDA";
    
    public static final String VOLTA = "VOLTA";

}
